@import './vars.scss' ;
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgb(83 100 176 / 50%) !important;
}
#app {
  .layout {
    // background-color: #f0f3f4;
    min-width: 1200px;
    overflow: auto;
  }

  .el-scrollbar {
    height: 100%;
    border-right: 1px solid #e5e8ef;

    .el-scrollbar__wrap {
      overflow-x: hidden !important;
    }
  }
  .el-dialog__wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    .el-dialog{
      margin: auto !important;
    }
    &::-webkit-scrollbar {
      /*滚动条整体样式*/
      width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
      height: 1px;
    }

    &::-webkit-scrollbar-thumb {
      /*滚动条里面小方块*/
      border-radius: 10px;
      box-shadow: inset 0 0 5px rgba(144,147,153,.5);
      background: rgba(144,147,153,.5);
    }

    &::-webkit-scrollbar-track {
      /*滚动条里面轨道*/
      box-shadow: inset 0 0 5px rgba(144,147,153,.5);
      border-radius: 10px;
      background: #ededed;
    }
  }

  .el-header {
    height: $header-height !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    background-color: $primary-color;

    .header {
      height:$header-height;
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .header-l {
      display: flex;
      align-items: center;

      .open-icon {
        display: flex;
        align-items: center;

        i {
          font-size: 22px;
          margin-right: 12px;
          cursor: pointer;
        }
      }
    }

    .header-r {
      display: flex;
      align-items: center;
      >a {
        color: #fff;
      }
    }
  }

  .el-aside {
    width: 220px !important;
    min-height: calc(100vh - 48px);
    height: 100%;
    color: $menu-text;
    background-color: #fff;
    box-sizing: border-box;

    .el-menu {
      border: none;
    }

    .sidebar {
      width: 220px;
      transition: width 0.3s;
      .el-submenu__title,.el-menu-item{
        color: $menu-text !important;
        background-color: #fff !important;
        i{    
          color: $menu-text
        }
        span{
          color: $menu-text;
        }
        &.is-active{
          background-color: $primary-color !important;
          background: linear-gradient(to right,$primary-color,$white) !important;
          i{
            color: $white;
          }
          span{
            color: $white;
          }
        }
      }
      .el-submenu:focus-visible{
        outline: none !important;
      }
    }
  }

  .el-container {
    .el-main {
      padding: 0 !important;
      .page-main {
        padding: 20px;
        background: rgb(242, 243, 248);
        // 主内容区设定好宽高，子元素继承宽高即可
        width: 100%;
        // height: calc(100vh - $header-height);
      }
    }
  }

  .sidebarCloseWidth {
    width: 64px !important;
  }

  .el-icon-s-opportunity {
    color: #ffc107;
    margin-bottom: 16px;
  }
}
